package com.chinatechstar.component.commons.entity;

import com.chinatechstar.component.commons.validator.InsertValidator;
import com.chinatechstar.component.commons.validator.UpdateValidator;

import javax.validation.constraints.Size;
import java.io.Serializable;

public class CreateEntity extends TimeEntity implements Serializable {
    private static final long serialVersionUID = -5563709014609214429L;

    @Size(max = 50, groups = {InsertValidator.class, UpdateValidator.class})
    private String createName;// 创建人名称
    @Size(max = 64, groups = {InsertValidator.class, UpdateValidator.class})
    private String createUsername;// 创建人Username

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }
}
